/*
 * point.cpp
 *
 *  Created on: 24.11.2011
 *      Author: berkut
 */

#include "point.h"

point::point() : x_(0.0), y_(0.0) {}

point::point(double x, double y) : x_(x), y_(y) {}

point::point(point const & a) : x_(a.x_), y_(a.y_) {}

std::ostream & operator << (std::ostream & out, point const & p)
{
	out << "(" <<  p.x_ << ", " << p.y_ << ")";
	return out;
}

std::istream & operator >> (std::istream & in, point & p)
{
	in >> p.x_ >> p.y_;
	return in;
}


